package com.itheima.stock.controller.V1;

import com.itheima.stock.api.StockControllerAPI;
import com.itheima.stock.entity.StockBusiness;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.service.StockServise;
import com.itheima.stock.vo.InnerMarketVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
public class StockController implements StockControllerAPI {

    @Autowired
    private StockServise stockServise;



    @Override
    public ResponseResult<List<InnerMarketVO>> innerIndexAll() {
        return ResponseResult.ok(stockServise.innerIndexAll());
    }

    @Override
    public ResponseResult<List<StockBusiness>> queryStockBusiness() {
        return ResponseResult.ok(stockServise.queryStockBusiness());
    }
}
